package com.yuanxiao.client;

import com.yuanxiao.service.UserService;

public class ClientBootStrap {
   // public static final String providerName="UserService#sayHello#";
    public static void main(String[] args) throws InterruptedException {
        RpcConsumer rpcConsumer = new RpcConsumer();
       // Thread.sleep(2000);
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class);
        while (true){
            Thread.sleep(2000);
            System.out.println("代理对象已经被创建...");
            System.out.println(proxy.sayHello("are you ok?"));

        }

    }
}
